home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Ubuntu 9.10 PL
/
karmelkowy-koliberek-desktop-9.10-i386-PL.iso
/
casper
/
filesystem.squashfs
/
sbin
/
usplash_down
< prev
next >
Wrap
Text File
|
2009-10-27
|
770b
|
33 lines
#!/bin/sh
SPLASH=false
VERBOSE=true
for x in $(cat /proc/cmdline); do
case $x in
splash*)
SPLASH=true;
;;
nosplash*)
SPLASH=false;
;;
esac
done
[ "$SPLASH" != "true" ] || pidof usplash >/dev/null && exit 1
# Clean up the console before we switch to it, to avoid text flicker:
if [ -x /usr/bin/tput ]; then
tput -Tlinux reset > /dev/tty8
fi
# Run usplash, switching to vt8
/sbin/usplash -p -c -d --background --pidfile /var/run/usplash_down.pid
# Append our PID to the list of processes that sendsigs won't kill,
# to avoid flicker on shutdown:
cat /var/run/usplash_down.pid >> /var/run/sendsigs.omit
# Just because, tidyness is next to... Something or other:
exit 0